<template>
	<view class="forget-pw">
		<m-nav>
			<block slot="content">忘记密码</block>
		</m-nav>
    <view>1111</view>
    <view>21111</view>
    <view>31111</view>
    <view>41111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view>1111</view>
    <view class="uni-tab-bar-loading">
    	<uni-load-more :loadingType="loadingType"></uni-load-more>
    </view>
	</view>
</template>

<script>
  import uniLoadMore from '@/components/uni-load-more.vue';
  import mNav from '@/components/m-nav/m-nav.vue';
	export default {
    name: "forget-pw",
    components: {
      mNav,
      uniLoadMore
    },
		data() {
			return {
				loadingType:0
			}
		},
    onLoad: function (options) {
      //uni.startPullDownRefresh();
    },
    
    onReachBottom() {
      console.log("上拉刷新");
      this.scrolltolower();
    },
    
    onPullDownRefresh() {
      console.log('下拉刷新');
      setTimeout(function () {
        uni.stopPullDownRefresh();
      }, 1000);
    },
      
		methods: {
      
			scrolltolower(e) {
			  let tthis = this;
			  this.loadingType = 1;
			  setTimeout(() => {
			    tthis.addData();
			  }, 1000);
			},
			
			addData() {
			  this.loadingType = 2;
			}
      
		}
	}
</script>

<style>

</style>
